﻿using Dapper;

namespace InterfaceLib
{
    /// <summary>
    /// 发送接口的一些属性
    /// </summary>
    [Table("Config")]
    public class MsgModel
    {
        [Key]
        public int? Id { get; set; }
        /// <summary>
        /// 基本地址
        /// </summary>
        public string BaseUrl { get; set; }
        /// <summary>
        /// 虚拟路径
        /// </summary>
        public string PostUrl { get; set; }
        /// <summary>
        /// Post数据
        /// </summary>
        public string PostData { get; set; }
        /// <summary>
        /// 请求类型
        /// </summary>
        public ERequestType RequestType { get; set; }
        /// <summary>
        /// 成功标记
        /// </summary>
        public string SuccessFlag { get; set; }
        /// <summary>
        /// 每个网站的限制不一样 单位秒
        /// </summary>
        public int Wait { get; set; }
        /// <summary>
        /// 浏览器类型 有的网站手机访问没有验证码
        /// </summary>
        public string UseAgent { get; set; }
        /// <summary>
        /// 状态 
        /// </summary>
        public string Status { get; set; }
        ///// <summary>
        ///// 处理程序 默认为ExtendOne  插件式的
        ///// </summary>
        //public string HandlerClass { get; set; }
    }


    public enum ERequestType
    {
        Get,
        Post
        
    }
}
